home *** CD-ROM | disk | FTP | other *** search
/ Univers Interactif 3 / INTERACTIF.BIN / pc / planeten / internet / macslip2.6up / AppleScript Examples / Configure next >
Text File  |  1994-12-06  |  935b  |  31 lines

  1. --
  2. -- AppleScript script to configure some MacSLIP items
  3. --
  4. -- configSet 0 is the currently selected configuration set.
  5. -- You can also specify the name of a configuration set, e.g.:
  6. --  tell configSet "Home"
  7. --
  8.  
  9. tell application "MacSLIP Apple Events"
  10.     --
  11.     -- Set some variables in the default configuration set. 
  12.     -- Variables referenced relative to a configuration set
  13.     -- are local variables.
  14.     -- NOTE: the variables set by this sample script are not
  15.     -- used by any of the sample MacSLIP connection scripts
  16.     --
  17.     tell configSet 0
  18.         -- Set some variables
  19.         set the value of configVariable "myname" to "Richard"
  20.         set the value of configVariable "hidden" to "secret"
  21.         set the hideFlag of configVariable "hidden" to true
  22.         -- Set some configuration items
  23.         set DTRInputFlowControl to true
  24.         set CTSOutputFlowControl to true
  25.     end tell
  26.     --
  27.     -- Set a global variable
  28.     --
  29.     set the value of configVariable "gvar" to "a glbl var"
  30. end tell
  31.